import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
// import { t } from '@/hooks/web/useI18n';

// prettier-ignore
const subRouter: AppRouteModule = {
  path: '/developer', name: 'developer', component: LAYOUT, meta: { icon: 'ion:tv-outline', title: '开发者', orderNo: -1}, children: [
      { path: 'server', name: 'server', meta: { title: '服务端代码'}, children: [
        { path: 'java', name: 'java', meta: { title: '生成Java代码'}, component: () => import('/@/pages/developer/server/index.vue')},
        { path: 'settings/:id', name: 'serverSettings', meta: { title: '配置'}, component: () => import('/@/pages/developer/server/settings.vue')},
        { path: 'dict/:id', name: 'dict', meta: { title: '字典'}, component: () => import('/@/pages/developer/dict/dict/index.vue')},
        { path: 'dictItem/:id', name: 'dictItems', meta: { title: '字典项'}, component: () => import('/@/pages/developer/dict/dictItem/index.vue')},
      ]},
      { path: 'vben', name: 'vben', meta: { title: '管理后台代码'}, children: [
          { path: 'tsApi', name: 'TS-Api',meta: { title: '接口 api.ts' }, component: () => import('/@/pages/developer/tsApi/index.vue')},
          { path: 'tsType', name: 'TS-Type',meta: { title: '领域模型 type.ts' }, component: () => import('/@/pages/developer/tsType/index.vue')},
      ]},
    { path: 'aclManger', name: 'aclManger', meta: { title: '权限数据维护'}, children: [
        { path: 'menuComponent', name: 'menuComponent', meta: { title: '菜单组件'}, component: () => import('/@/pages/developer/menuComponent/index.vue'),},
        { path: 'api', name: 'api', meta: { title: 'Api接口'}, component: () => import('/@/pages/developer/api/index.vue'),},
      ]},

  ],
};
export default subRouter;
